<template>
  <n-form-item :label="label" :path="name" >
    <n-input-number v-bind="$attrs"  clearable style="width: 100%" />
  </n-form-item>
</template>
<script setup>

const props = defineProps({
  label:String,
  name:String,
  required:Boolean,
  rules:Object
})
const emit = defineEmits(['loadRules'])
onMounted(()=>{
  emit('loadRules',props)
})
</script>